package models

import (
    "go-admin/common/models"
)

type HtProject struct {
    models.Model
    Name    string     `json:"name" gorm:"type:varchar(128);comment:项目名称"`
    Note    string     `json:"note" gorm:"type:varchar(255);comment:备注"`
    Status  string     `json:"status" gorm:"type:varchar(4);comment:状态"`
    Talents []HtTalent `json:"talents" gorm:"many2many:ht_project_talent;foreignKey:Id;joinForeignKey:ProjectId;references:Id;joinReferences:TalentId;"`
    models.ModelTime
    models.ControlBy
}

func (HtProject) TableName() string {
    return "ht_project"
}

func (e *HtProject) Generate() models.ActiveRecord {
    o := *e
    return &o
}

func (e *HtProject) GetId() interface{} {
    return e.Id
}
